package io.bdmc.modules.bss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.bdmc.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * edfa盘数据 实体
 * </p>
 *
 * @author 黄露
 * @since 2021-04-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
// "DeviceMachineEdfa对象", description = "edfa盘数据")
public class DeviceMachineEdfa extends Model<DeviceMachineEdfa> {

  private static final long serialVersionUID = 1L;

  // "edfa数据主键id")
  @TableId(value = "machine_edfa_id", type = IdType.AUTO)
  private Integer machineEdfaId;

  // "设备id")
  private Integer deviceId;

  @Excel(name = "单盘SN")
  private String diskSn;

  @Excel(name = "设备SN")
  @TableField(exist = false)
  private String deviceSn;
  // "模块类型")
  @Excel(name = "模块类型")
  private String moduleType;
  // "模块类型(线路位置)")
  @Excel(name = "线路位置")
  private String lineLocation;

  // "泵浦个数")
  private Integer pumpsCount;

  // "光路级数")
  private String lightPathSeries;

  // "告警状态1")
  private String alarmState1;

  // "告警状态2")
  private String alarmState2;

  // "工作模式")
  private String workMode;

  // "APC功率设置值")
  @Excel(name = "APC功率设置值")
  private String apcPowerSetting;

  // "工作状态")
  private String workStatus;

  // "最小功率")
  private String minPower;

  // "额定功率")
  private String ratedPower;

  // "单级输出功率")
  @Excel(name = "单级输出功率")
  private String outputPower;

  // "单级输入功率")
  @Excel(name = "单级输入功率")
  private String inputPower;

  // "温度")
  private String temper;

  // "最低温度阈值")
  private String temperMin;

  // "最高温度阈值")
  private String temperMax;

  // "单级输入低门限")
  private String inputLowGate;

  // "单级输入高门限")
  private String inputHighGate;

  // "单级输出告警门限")
  private String outputAlarmGate;

  // "泵浦1电流")
  @Excel(name = "泵浦电流")
  private String pump1Current;

  // "泵浦1功率")
  @Excel(name = "泵浦功率")
  private String pump1Power;

  // "泵浦1温度")
  @Excel(name = "泵浦温度")
  private String pump1Temper;

  // "制冷电流")
  @Excel(name = "制冷电流")
  private String refdCurrent;

  private Boolean intervalSave;

  // 单级输入无光告警门限
  private String inputLightlessAlarmThreshold;

  // "创建时间")
  @Excel(name = "创建时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime createTime;

  // "更新时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime updateTime;

  @Override
  public Serializable pkVal() {
    return this.machineEdfaId;
  }

}
